import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 */

class Student{
    private String name;
    private String classes;
    private double grade;

    public Student(String name, String classes, double grade) {
        this.name = name;
        this.classes = classes;
        this.grade = grade;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getClasses() {
        return classes;
    }

    public void setClasses(String classes) {
        this.classes = classes;
    }

    public double getGrade() {
        return grade;
    }

    public void setGrade(double grade) {
        this.grade = grade;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", classes='" + classes + '\'' +
                ", grade=" + grade +
                '}';
    }
}

public class TestDemo {
    public static void main(String[] args) {
        List<Student> list = new ArrayList<>();
        Student list1 = new Student("李四","1班",100);
        Student list2 = new Student("张三","2班",90);
        Student list3 = new Student("王五","1班",88);

        list.add(list1);
        list.add(list2);
        list.add(list3);
        System.out.println(list);
    }
}
